/**
 * 返回大廳命令
 * 
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-7 20:06
 */
package com.addcn.texas.control {
	import com.addcn.fog.control.ICommand;
	import com.addcn.fog.control.SimpleCommand;
	
	import com.addcn.texas.Main;	
	import com.addcn.texas.model.*;
	import com.addcn.texas.view.*;	
	
	public class userOperationCommand extends SimpleCommand implements ICommand {
		
		public override function execute(r_data:Object = null):void {						
			switch(r_data.type) {
				case "ech":
					modelLocator.getModel(RoomUserModel).checkUserSit(r_data["sit"]);
					break;
				case "sit":
					modelLocator.getModel(RoomUserModel).sitDown(r_data);					
					break;
				case "up":
					modelLocator.getModel(RoomUserModel).standUp();
					break;
			
			}
		}

	}
}
